package com.coderbean.demo;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
/**
 * @author Gavin Li
 * @version 1.0
 * @group HummingBird
 * @date 2022/5/15 22:30
 * @desc
 */
public class ActivitiDbCreation {
    public static void main(String[] args) {
        //创建ProcessEngineConfiguration
        ProcessEngineConfiguration configuration = ProcessEngineConfiguration
                .createProcessEngineConfigurationFromResource("activiti.cfg.xml");
        //通过ProcessEngineConfiguration创建ProcessEngine，此时会创建数据库
        ProcessEngine processEngine =
                configuration.buildProcessEngine();
        System.out.println(processEngine);

    }
}
